package com.infosys.newSimpleInvertedIndex.models;

import java.util.List;

import com.google.common.base.Stopwatch;

public class SearchResultCollection {
    private List<SearchResult> searchResults;
    private SearchStats searchStats;

    public SearchResultCollection(List<SearchResult> searchResults, Stopwatch stopwatch, int numDocSearched) {
        this.searchResults = searchResults;
        this.searchStats = new SearchStats(stopwatch.elapsed().toNanos(), numDocSearched);
    }

    public List<SearchResult> getSearchResults() {
        return this.searchResults;
    }
    public void setSearchResults(List<SearchResult> searchResults) {
        this.searchResults = searchResults;
    }

    public SearchStats getSearchStats() {
        return this.searchStats;
    }
    public void setSearchStats(SearchStats searchStats) {
        this.searchStats = searchStats;
    }

}
